import { memo } from 'react';
import type { FC, PropsWithChildren } from 'react';
import { Button, ButtonProps, Form } from 'antd';

const RxButton: FC<PropsWithChildren<ButtonProps>> = ({
  children,
  ...props
}) => {
  return (
    <Form.Item>
      <Button htmlType={'submit'} block {...props}>
        {children ? children : '登录'}
      </Button>
    </Form.Item>
  );
};

export default memo(RxButton);
